package com.dragons.service;

import com.dragons.dao.PaymentDao;
import com.dragons.entities.Payment;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * @author Dragons.G
 * @date 2024-12-15 18:59:43
 * @description
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }

}

